// pages/photo/item/item.js
let app = getApp().globalData;
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    type:Object,
    datas:Object,
    note:String,
    photo:Object,
  },

  /**
   * 组件的初始数据
   */
  data: {
    type:'',
    amount:3,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toDetail(){
      app.photo_cultivation = this.properties.datas;
      app.photo_type = this.properties.type;
      app.photo = this.properties.photo;
      wx:wx.navigateTo({
        url: '/pages/photo/detail/detail?note='+this.properties.note,
        events: false,
      })
    }
  }
})
